<?php
require_once("../connect_db.php");
switch($_GET["role"]){
	case "1":$sqlDelete="update student set status='N' where std_id='".$_GET["temp"]."'";
		$backpage=" <script>$(function(){
		$('#h3title').html('ข้อมูลผู้เรียน');
		$('#mainscreen').load('admin/manage_student_page.php');
		});</script>";
		break;
	case "2":$sqlDelete="update teacher set status='N' where teach_id='".$_GET["temp"]."'";
	$backpage=" <script>$(function(){
		$('#h3title').html('ข้อมูลผู้สอน');
		$('#mainscreen').load('admin/manage_teacher_page.php');
		});</script>";
	break;
	case "3":$sqlDelete="update course set status='N' where course_id='".$_GET["temp"]."'";
		$backpage=" <script>$(function(){
		$('#h3title').html('ข้อมูลคอร์ส');
		$('#mainscreen').load('admin/manage_course_page.php');
		});</script>";
	break;
	case "4":$sqlDelete="update car set status='D' where car_id='".$_GET["temp"]."'";
		$backpage=" <script>$(function(){
		$('#h3title').html('ข้อมูลรถ');
		$('#mainscreen').load('admin/manage_car_page.php');
		});</script>";
	break;
}

$queryDelete=mysql_query($sqlDelete);
echo $backpage;

 ?>
